package com.jiasongfan.dao;

import com.jiasongfan.entity.*;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDao {
    @Select("select * from tb_user where user_num=#{userNum} and user_pwd=#{userPwd}")
    TbUser login(TbUser tbUser);

    List<TbOrder> list(QueryVO vo);


    void add(TbOrder tbOrder);

    void addGoods(TbOrderGoods tbOrderGoods);

    TbOrder selectById(Long oid);

    void update(TbOrder tbOrder);

    void register(TbUser tbUser);

    List<Menu> getTree(Integer mid);
}
